package com.mini.vo;

import lombok.Data;
import org.apache.commons.lang.StringUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zl
 * @version 1.0
 * @date Created in 2020/3/13
 */
@Data
public class UserSimpleVo {

    private Long id;

    private String username;

    private String nickname;

    private Long deptId;

    private String deptName;

    private String email;

    private String role;

    private String roleName;

    @Deprecated
    private Long skuId;
    @Deprecated
    private String skuName;
    @Deprecated
    private Long workRoomId;
    @Deprecated
    private String workRoomName;

    private Boolean showDecryptPhone;

    private List<String> kdIds = new ArrayList<>();

    private Boolean wechat ;

    private Boolean mpPubEnabled;

    public List<String> getRoles() {
        List<String> list = new ArrayList<>();
        if(!StringUtils.isBlank(role)){
            list.add(role);
        }
        return list;
    }

    private FullDeptVo fullDept;

}